

define([
           "dojo/dom-construct",
           "dashboarddesktop",
       ],

    function(domConstruct, DashboardDesktop){

        var container =  domConstruct.create("div");

        container.style.width = "100%";
        container.style.height = "100%";
        container.style.backgroundImage = "url('images/blue.jpg')";
        container.style.backgroundSize = "200%";
        container.style.margin = "0";
        container.style.padding = "0";

        var desktop = new DashboardDesktop();
        container.appendChild(desktop.domNode);

        return {
            contentPane: null,
            desktops: [],
            currentDesktop: desktop,
            domNode: container,


            // Adds a new desktop to the dashboard
            addDesktop: function()
            {
                desktops.push(new DashboardDesktop);
            },

            // Adds an icon to the current desktop
            addIconToCurrentDesktop: function(icon, application, x, y){
                this.currentDesktop.addIcon(icon, application,  x, y);
            },

        };
    }
);
